package com.example.xw.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.HashMap;
import java.util.Map;

@TableName("admins")
public class Admin {
    @TableId("admin_id")
    private Integer id;
    @TableField("admin_name")
    private String name;
    @TableField("admin_loginname")
    private String loginName;
    @TableField("admin_loginpwd")
    private String loginPwd;
    @TableField("admin_level")
    private int level;
    @TableField("admin_omses")
    private String pmses;

    @TableField(exist = false)
    private Map<String,Object> map = new HashMap<>();
    public Map<String, Object> getMap() {
        return map;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getPmses() {
        return pmses;
    }

    public void setPmses(String pmses) {
        this.pmses = pmses;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
